Skip to content

Conversation

@shikhar413
Copy link
Contributor

Reason

Design

Impact

refs #31733

@shikhar413
Copy link
Contributor Author

@eshemon @kkiesling FYI

@moosebuild
Copy link
Contributor

moosebuild commented Oct 24, 2025

Job Documentation, step Docs: sync website on 6159314 wanted to post the following:

View the site here

This comment will be updated on new commits.

@moosebuild
Copy link
Contributor

moosebuild commented Oct 24, 2025

Job Coverage, step Generate coverage on 6159314 wanted to post the following:

Framework coverage

7edd10 #31782 615931
Total Total +/- New
Rate 85.97% 85.97% -0.00% 100.00%
Hits 124954 125086 +132 162
Misses 20387 20411 +24 0

Diff coverage report

Full coverage report

Modules coverage

Reactor

7edd10 #31782 615931
Total Total +/- New
Rate 93.93% 93.98% +0.05% 100.00%
Hits 8011 8099 +88 99
Misses 518 519 +1 0

Diff coverage report

Full coverage report

Full coverage reports

Reports

This comment will be updated on new commits.

@shikhar413
Copy link
Contributor Author

@GiudGiud this PR should be good to review 🙏🏾

Copy link
Contributor

@GiudGiud GiudGiud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should make some sort of "tester" for the CSG, to ensure it is valid

this could be checking volumes? Or simplifying them and making sure a region is not empty? (intersection of +plane and -plane for example) ? or make a converter to OpenMC so the reviewer can plot them there?

@GiudGiud GiudGiud self-assigned this Oct 27, 2025
@kkiesling
Copy link
Collaborator

I think we should make some sort of "tester" for the CSG, to ensure it is valid

this could be checking volumes? Or simplifying them and making sure a region is not empty? (intersection of +plane and -plane for example) ? or make a converter to OpenMC so the reviewer can plot them there?

@GiudGiud Unfortunately, this is not necessarily within scope of the funded work that @shikhar413 and I currently doing. Yes, having some sort of visualization would be helpful as a developer, but that will also naturally come as the connection to specific codes are developed and each code has its native visualization tool that can be used. Additionally, Ideally tests are written in small enough units that the output can be manually inspected by developers/reviewers for correctness (which it seems you were able to do here, noting the mistake), and then they cover enough cases to be able to trust the larger complex models are correct.

Also, this CSG framework is not necessarily meant to check the validity of a CSG model, but instead makes sure it matches whatever input it was given. We are operating under the assumption that MOOSE has already validated the input as valid, and therefore if the CSG model is made to match that correctly, it is also valid. So in the example of an empty region, if that is what is created by the MOOSE input and valid there, then that is what would be created and considered valid for CSG as well.

Let us know if you want to discuss this in more detail offline/in a meeting.

@moosebuild
Copy link
Contributor

Job Precheck, step Clang format on a7c8afe wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/docs/PRs/31782/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format 2acb415a170285fef37748f90025af38c3977b3c

@shikhar413 shikhar413 force-pushed the pin_mg_to_csg branch 2 times, most recently from b45dbf8 to c173e79 Compare October 31, 2025 20:10
@shikhar413
Copy link
Contributor Author

@GiudGiud this should be good for a re-review now

@shikhar413
Copy link
Contributor Author

@GiudGiud comments should be addressed now. @kkiesling also brought up that we should have a unit test for testing the clone method, so I added that along with equality operator definitions for CSGBase and CSG[Surface|Universe|Cell]List.

Copy link
Contributor

@GiudGiud GiudGiud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last comments then good to go

…st, and add a unit test to check equality of cloned CSGBase objects
@moosebuild
Copy link
Contributor

Job Test, step Results summary on 6159314 wanted to post the following:

Framework test summary

Compared against 7edd10c in job civet.inl.gov/job/3374418.

Added tests

Test Time (s)
csg.geometry/csg_only_one_to_many_dependencies 0.72

Modules test summary

Compared against 7edd10c in job civet.inl.gov/job/3374418.

Added tests

Test Time (s)
reactor/test:meshgenerators/pin_mesh_generator.csg/3d_hex 0.82
reactor/test:meshgenerators/pin_mesh_generator.csg/2d_hex_single_assembly 0.78
reactor/test:meshgenerators/pin_mesh_generator.csg/3d_square 0.78
reactor/test:meshgenerators/pin_mesh_generator.csg/2d_square_single_assembly 0.77
reactor/test:meshgenerators/pin_mesh_generator.csg/2d_hex 0.76
reactor/test:meshgenerators/pin_mesh_generator.csg/3d_hex_single_assembly 0.75
reactor/test:meshgenerators/pin_mesh_generator.csg/2d_square 0.75
reactor/test:meshgenerators/pin_mesh_generator.csg/3d_hex_homogenized 0.75
reactor/test:meshgenerators/pin_mesh_generator.csg/2d_hex_homogenized 0.74

@GiudGiud GiudGiud merged commit b79a48d into idaholab:next Nov 12, 2025
67 of 69 checks passed
@shikhar413 shikhar413 deleted the pin_mg_to_csg branch November 12, 2025 23:25
@shikhar413
Copy link
Contributor Author

Thanks @GiudGiud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants